package cn.kgc.springboot.day02.controller;

import cn.kgc.springboot.day02.service.UserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @author 课工场
 * @date 2024/3/19
 * @description
 */
@RestController
@RequestMapping("user")
public class UserController {

    @Resource
    private UserService userService;

    @GetMapping("list")
    public Map<String,Object> getList(){
        return  userService.getList();
    }

}
